package com.yuyu.service;

/***********************************************************************
 * Module:  EmployeeServcie.java
 * Author:  xiaoyuyu
 * Purpose: Defines the Interface EmployeeServcie
 ***********************************************************************/

import com.yuyu.bean.Employee;
import com.yuyu.uitlbean.PageData;
import com.yuyu.uitlbean.ResultObj;
import com.yuyu.uitlbean.ResultPageData;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

import java.util.*;

/***********************************************************************
 * Module:  EmployeeService.java
 * Author:  xiaoyuyu
 * Purpose: Defines the Interface EmployeeService
 ***********************************************************************/

/** @pdOid 07fd4268-fac5-4a30-b2c4-249fa44fd4f4 */
public interface EmployeeService {
    /** @param employee
     * @pdOid 16ac9158-e9c0-452f-9a84-d83ecdc57ad6 */
    ResultObj addEmployee(Employee employee);
    /** @param list
     * @pdOid 3fa68d89-64af-4f74-ad81-e95b54395e66 */
    ResultObj deleteEmployeeById(List<Integer> list);
    /** @param employee
     * @pdOid 43148c70-0a94-4b9d-86b1-12e90c55077b */
    ResultObj editEmployee(Employee employee);
    /** @param page_data
     * @pdOid 5a33063b-d4e7-447b-a971-c74f6bd1859f */
    ResultObj<ResultPageData<List<Employee>>> filtrateEmployee(PageData page_data, String condition);
    //根据登录名查询员工资料
    ResultObj<Employee> getEmployeeByUserName(String username);
    //通过编码查询员工资料
    ResultObj<Employee> getEmployeeById(Integer id);
    //导出EXCEL
    XSSFWorkbook exportEmployeeExcel();
    //导入EXCEL
    ResultObj importEmployeeExcel(XSSFSheet sheet);
}
